package com.pmcc.yn.repository;

import com.pmcc.yn.entity.UpcomingInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by chuxuyang on 2019/4/29.
 */
public interface UpcomingInfoRepository extends JpaRepository<UpcomingInfo,String> {

    Page<UpcomingInfo> findAll(Specification<UpcomingInfo> spec, Pageable var1);

    UpcomingInfo findById(String id);

    List<UpcomingInfo> findByTechIdOrderByCreateTimeDesc(String id);

}
